package com.sgb.kjwl.view.ui.adapter.self.order

import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.chad.library.adapter.base.BaseViewHolder

/**
 * 继承BaseQuickAdapter可以使用DataBinding
 * 示例：OrderListAdapter
 */
class DataBindingViewHolder(view: View?) : BaseViewHolder(view) {

    private var binding: ViewDataBinding? = DataBindingUtil.bind(view!!)

    fun getBinding(): ViewDataBinding? {
        return binding
    }
}


/**
 * public final class DataBindingViewHolder extends BaseViewHolder {
private ViewDataBinding binding;

@Nullable
public final ViewDataBinding getBinding() {
return this.binding;
}

public DataBindingViewHolder(@Nullable View view) {
super(view);
Intrinsics.checkNotNull(view);
this.binding = DataBindingUtil.bind(view);
}
}
 */

